
def squareMe(x):
    '''
    一个计算平方的函数
    :param x:
    :return :
    >>> squareMe(0)
    0
    >>> squareMe(3)
    9
    >>> squareMe(-3)
    9
    '''

    return x*2

class Person:

    '''
    这是一个Person类
    name代表人名
    age代表年龄

    >>> p=Person('hw',18)
    >>> p.name
    hw
    >>> p.age
    18
    >>> p.say('hello')
    hello

    '''
    def __init__(self,name,age):
        self.name='hewei'
        self.age=age

    def say(self,msg):
        print(msg)

if __name__=="__main__":
    import doctest
    doctest.testmod()